package com.hzw.code.vm

import android.content.Context
import android.view.LayoutInflater
import android.view.View

/**
 *
 * @Author:         HuaZhongWei
 * @CreateDate:     2020/4/20 14:17
 *
 * @Description:    自定义标题的基类
 *
 */
abstract class TitleLayout(val context: Context) {

    val rootLayout: View

    init {
        rootLayout = LayoutInflater.from(context).inflate(getLayoutResId(), null)
    }

    abstract fun getLayoutResId(): Int;

}